package cate.game.role.res.worldtree.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBWorldTree;
import cate.game.role.Role;
import cate.game.role.res.worldtree.share.HeroShare;
import easy.java.dev.note.NoteField;


@ClientMsg(title = "英雄分享数据 の 返回")
public class HeroShareDataResp implements MsgOutput {

    @NoteField(value = "英雄共享背包")
    public HeroShare heroShare;

    public HeroShareDataResp(){}

    public HeroShareDataResp(Role role) {
        this.heroShare = role.getRes().worldTree.heroShare;
    }

    public HeroShareDataResp(HeroShare heroShare){
        this.heroShare = heroShare;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBWorldTree.DATA_RESP;
    }
}
